package test1;

public class SwitchDemo {
    public static void main(String[] args) {
        int score =88;
        String level;//级别
        switch (score/10) {
            case 10:
            case 9:level = "优秀";break;
            case 8:
            case 7:level = "良好";break;
            case 6:level = "及格";break;
            default:level = "不及格";
        }
        System.out.println(level);
    }
}
